package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;

/**
 * 任务对象 cz_task
 * 
 * @author ruoyi
 * @date 2022-02-08
 */
@ApiModel(description= "任务对象")
public class CzTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID */
    @ApiModelProperty(value ="任务ID")
    private String taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @ApiModelProperty(value ="任务名称")
    private String taskName;

    /** 任务类型 */
    @Excel(name = "任务类型")
    @ApiModelProperty(value ="任务类型")
    private String taskType;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value ="开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value ="结束时间")
    private Date endTime;

    /** 任务目的 */
    @Excel(name = "任务目的")
    @ApiModelProperty(value ="任务目的")
    private String purpose;
    
    /** 任务区域 */
    @Excel(name = "任务区域")
    @ApiModelProperty(value ="任务区域")
    private String area;
    

    /** 负责人员 */
    @Excel(name = "负责人员")
    @ApiModelProperty(value ="负责人员")
    private Long headUserId;
    /** 负责人员 */
    @Excel(name = "负责人员Entity")
    @ApiModelProperty(value ="负责人员Entity")
    private SysUser headUser;

    /** 设备集合 */
    @Excel(name = "设备集合")
    @ApiModelProperty(value ="设备集合")
    private String equipmentIds;

    /** 人员集合 */
    @Excel(name = "人员集合")
    @ApiModelProperty(value ="人员集合")
    private String userIds;

    /** 提交人员 */
    @Excel(name = "提交人员")
    @ApiModelProperty(value ="提交人员")
    private Long submitUserId;
    
    /** 提交人员 */
    @Excel(name = "提交人员Entity")
    @ApiModelProperty(value ="提交人员Entity")
    private SysUser submitUser;

    /** 当前审核人员 */
    @Excel(name = "当前审核人员")
    @ApiModelProperty(value ="当前审核人员")
    private Long auditUserId;
    
    /** 当前审核人员 */
    @Excel(name = "当前审核人员Entity")
    @ApiModelProperty(value ="当前审核人员Entity")
    private SysUser auditUser;

    /** 任务状态 */
    @Excel(name = "任务状态")
    @ApiModelProperty(value ="任务状态")
    private String status;

    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    public String getTaskType() 
    {
        return taskType;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPurpose(String purpose) 
    {
        this.purpose = purpose;
    }

    public String getPurpose() 
    {
        return purpose;
    }
    
    public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public void setHeadUserId(Long headUserId) 
    {
        this.headUserId = headUserId;
    }

    public Long getHeadUserId() 
    {
        return headUserId;
    }
    public void setEquipmentIds(String equipmentIds) 
    {
        this.equipmentIds = equipmentIds;
    }

    public String getEquipmentIds() 
    {
        return equipmentIds;
    }
    public void setUserIds(String userIds) 
    {
        this.userIds = userIds;
    }

    public String getUserIds() 
    {
        return userIds;
    }
    public void setSubmitUserId(Long submitUserId) 
    {
        this.submitUserId = submitUserId;
    }

    public Long getSubmitUserId() 
    {
        return submitUserId;
    }
    public void setAuditUserId(Long auditUserId) 
    {
        this.auditUserId = auditUserId;
    }

    public Long getAuditUserId() 
    {
        return auditUserId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    

    public SysUser getSubmitUser() {
		return submitUser;
	}

	public void setSubmitUser(SysUser submitUser) {
		this.submitUser = submitUser;
	}

	public SysUser getAuditUser() {
		return auditUser;
	}

	public void setAuditUser(SysUser auditUser) {
		this.auditUser = auditUser;
	}
	

	public SysUser getHeadUser() {
		return headUser;
	}

	public void setHeadUser(SysUser headUser) {
		this.headUser = headUser;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("taskType", getTaskType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("purpose", getPurpose())
            .append("headUserId", getHeadUserId())
            .append("equipmentIds", getEquipmentIds())
            .append("userIds", getUserIds())
            .append("submitUserId", getSubmitUserId())
            .append("auditUserId", getAuditUserId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
